import * as fs from 'fs'; // 使用 import 方式导入 fs 模块

const readStream = fs.createReadStream('./aaa.txt', {
  start: 8,
  highWaterMark: 3
});

readStream.on('data', (data) => {
  console.log(data.toString());
  readStream.pause(); 
  setTimeout(() => {
    readStream.resume(); 
  }, 2000); 
});
